﻿using System;
using System.Net.Sockets;

namespace Server
{
    class ClientHandler
    {
        public TcpClient Client { get; set; }
        public static TcpClient tcpDoc { get; set; }
        public String patientnaam { get; private set; }
        public int patientID { get; private set; }
        public int patientGender { get; set; }
        public int age { get; set; }
        public int weight { get; set; }

        public ClientHandler( String patientnaam, String patientId, String _patientGender, String _age, String _weight)
        {
            if (_patientGender == "Male")
            {
                this.patientGender = 1;
            }
            else this.patientGender = 0;
            age = Convert.ToInt32(_age);
            weight = Convert.ToInt32(_weight);
            this.patientnaam = patientnaam;
            patientID = Convert.ToInt32(patientId);
        }
    }
}
